<div class="crumbs">
  <h3>免费报价用户数据列表</h3>
  <p><a ui-sref="main.ask-price" >C端主页管理</a> > 免费报价用户数据列表</p>
</div>

<div class="content-box">
  <div class="form-inline form-group "  >
    <div class="inline-block f12  ">
      <select class="form-control input-sm " ng-init="states=[{id:0,name:'未处理'},{id:1,name:'已处理'}]"   ng-options="v.id as v.name for v in states" ng-model="list.state"   >
        <option value="">--处理状态--</option>
      </select>
      <input type="text" class="form-control input-sm"  placeholder="联系电话" maxlength="11" size="20" ng-model="list.phone">

      <button   type="button" class="btn btn-primary btn-sm  input-sm "  ng-click="submitSearch(list)">查询</button>

    </div>
    <div class="float-right">
      客户提交总量：{{gridParent.allCount }}
      完成注册用户总量：{{gridParent.completeRegisterCount}}
      未注册用户总量：{{gridParent.notRegisterCount }}
      已有帐号：{{gridParent.allCount-(gridParent.completeRegisterCount+gridParent.notRegisterCount) }}
    </div>

  </div>

  <table class=" table   table-hover table-condensed  table-striped text-center  ">
    <thead style="background:#8A8BC4; color: #fff">
    <tr>
      <td>ID</td>
      <td>客户姓名</td>
      <td>联系电话</td>
      <td>所在地区</td>
      <td>发布日期</td>
      <td>是否注册</td>
      <td>跟进人员</td>
      <td>状态</td>
      <td>操作</td>
    </tr>
    </thead>


    <tbody>
    <tr ng-repeat="g in grid.result">
      <td>{{g.id   }}</td>
      <td>{{g.name    }}</td>
      <td>{{g.phone    }}</td>
      <td>{{g.area    }}</td>
      <td>{{g.createDate | date:'yyyy-MM-dd HH:mm:ss' }}</td>

      <td>{{g.register    }}</td>
      <td>{{g.peName   }}</td>
      <td>{{g.state==0?"未处理":"已处理"  }}</td>
      <td>
        <button  class="btn btn-primary btn-xs " ng-if="g.state==0" ng-click=isDone(g.id)>标记已处理</button>
        <button  class="btn btn-success btn-xs "  ng-click=show(g.id)>查看详情</button>
      </td>

    </tr>
    <tr ng-if="!grid.result"><td colspan=9 class="f12 c-999 " >没有相关数据!</td></tr>
    </tbody>
  </table>
  <div ng-include="'/templates/partial/page.html'" style="height: 50px;background-color: #f4f4f6"></div>
</div>


<!--dialog 备注-->
<div class="modal fade createDialog ">
  <div class="modal-dialog " style="width: 600px">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" >备注</h4>
      </div>
      <div class="modal-body"  >
        <div class="dialog-content ml20 ">
          <dl class="  form-inline form-group" >

            <dd>
              <textarea class="form-control" ng-model="contentInfo.remarks "  style="width:530px"   rows="4"     ng-maxlength="300" maxlength="300" placeholder="300字以内"></textarea>
            </dd>

            <p class="text-center c-red f12 mt10 "> <i class="loading f12 c-green block"></i>{{contentInfo.errorMsg}}</p>
          </dl>

        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary "  ng-click="pay(contentInfo)" >提交</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<div ng-include="'/templates/partial/show-img.html'"></div>